package com.boardour.wifip2p.packet;


public class BytesSendPacket extends SendPacket {
    private byte[] bytes;

    public BytesSendPacket(byte type, byte[] data, long time) {
        this.bytes = data;
        this.length = data.length;
        this.type = type;
        this.time = time;
    }

    @Override
    public byte[] bytes() {
        return bytes;
    }

    @Override
    public void close() {
        bytes = null;
        length = 0;
    }
}
